Skip to content

Suche nach (empty) findet NULL-Werte nicht - #1603

Open
tyrant88 wants to merge 1 commit into
yakamara:masterfrom
tyrant88:tyrant88-patch-268
Open

tyrant88 wants to merge 1 commit into
yakamara:masterfrom
tyrant88:tyrant88-patch-268

Conversation

@tyrant88

Copy link
Copy Markdown
Contributor

integer und text bauen für (empty) where($field, null).
Das ergibt "= NULL", was in SQL nie zutrifft.
Datensätze mit NULL im Feld fehlen im Suchergebnis. whereNull() erzeugt "IS NULL".

Bei Integer-Feldern fällt es besonders auf: "= ''" trifft dort nur die 0, Felder ohne Wert werden gar nicht gefunden.

integer und text bauen für (empty) where($field, null). Das ergibt
"= NULL", was in SQL nie zutrifft; Datensätze mit NULL im Feld fehlen
im Suchergebnis. whereNull() erzeugt "IS NULL".

Bei Integer-Feldern fällt es besonders auf: "= ''" trifft dort nur
die 0, Felder ohne Wert werden gar nicht gefunden.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant